import request from '@/utils/request'

// 查询screwConfig列表
export function listScrewConfig(query) {
  return request({
    url: '/system/screwConfig/list',
    method: 'get',
    params: query
  })
}

// 查询screwConfig详细
export function getScrewConfig(screwId) {
  return request({
    url: '/system/screwConfig/' + screwId,
    method: 'get'
  })
}

// 新增screwConfig
export function addScrewConfig(data) {
  return request({
    url: '/system/screwConfig',
    method: 'post',
    data: data
  })
}

// 修改screwConfig
export function updateScrewConfig(data) {
  return request({
    url: '/system/screwConfig',
    method: 'put',
    data: data
  })
}

// 删除screwConfig
export function delScrewConfig(screwId) {
  return request({
    url: '/system/screwConfig/' + screwId,
    method: 'delete'
  })
}


  // 生成screwConfig
  export function generateDocumentConfig(screwId) {
    return request({
      url: '/system/screwConfig/generateDocument/' + screwId,
      method: 'get'
    })
}
